package homeWork.Strings_Pra;

public class Strings1 {
    public static void main(String[] args) {
            String s1 = "豫A 12345";
            String s2 = "豫G 23456";
            String s3 = "豫B 56789";
            int sum = 0;
            char[] chars1 = s1.toCharArray();
            char[] chars2 = s2.toCharArray();
            char[] chars3 = s3.toCharArray();
            for (int i = 0; i < 2; i++) {
                if(chars1[i] != chars2[i]){
                    sum++;
                }
                if(chars1[i] != chars3[i]){
                    sum++;
                }
                if(chars2[i] != chars3[i]){
                    sum++;

                }
            }
            System.out.println(sum);
    }
}
